<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h2>HTML Forms</h2>
    <!-- enctype="multipart/form-data" 提交表单的方式  body 是有Boundary分隔的------WebKitFormBoundaryGX9hsaIQKLQwab86
              会带上文件
        默认是 application/x-www-form-url-encoded    body 是查询字符串 fname=%E5%BC%A0&lname=%E4%B8%89&file=
              不会带文件

        所以传文件得用 form-data
    -->
    <form action="/submit" method="POST" enctype="multipart/form-data">
      <label for="fname">First Name:</label>
      <input type="text" id="fname" name="fname" value="张" /><br /><br />
      <label for="lname">Last Name:</label>
      <input type="text" id="lname" name="lname" value="三" /><br /><br />
      <label for="file">file:</label>
      <input type="file" id="file" name="file" /><br /><br />

      <input type="submit" value="Submit" />
    </form>
  </body>
</html>
